package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: yinsh
 * Date: 2025-01-19
 * Time: 11:49
 */
public class Card {
    private String suit;
    private int num;

    public String getSuit() {
        return suit;
    }
    public void setSuit(String suit) {
        this.suit = suit;
    }
    public int getNum() {
        return num;
    }
    public void setNum(int num) {
        this.num = num;
    }
    public Card(int num,String suit) {
        this.num = num;
        this.suit = suit;
    }
    @Override
    public String toString() {
        return
                suit + " " + num;
    }
}
